package com.example.wuqujingdianphone.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

public class AudioMoreBean implements Parcelable {


    /**
     * yinpinId : 88
     * yinpinname : 包拯：断案如神的青天老爷
     * spic : /Public/editor/attached/image/20180309/20180309095459_81666.jpg
     * list : [{"id":"329","name":"第1-10集","model":[{"id":"385","title":"第一集","spic":"","url":"/Public/editor/attached/file/20180309/20180309095641_93215.mp3","add_time":"1520560604","times":"","pid":"329"},{"id":"386","title":"第二集","spic":"","url":"/Public/editor/attached/file/20180309/20180309095711_10381.mp3","add_time":"1520560634","times":"","pid":"329"},{"id":"387","title":"第三集","spic":"","url":"/Public/editor/attached/file/20180309/20180309095740_58801.mp3","add_time":"1520560667","times":"","pid":"329"},{"id":"388","title":"第四集","spic":"","url":"/Public/editor/attached/file/20180309/20180309095814_86994.mp3","add_time":"1520560697","times":"","pid":"329"},{"id":"389","title":"第五集","spic":"","url":"/Public/editor/attached/file/20180309/20180309095843_31198.mp3","add_time":"1520560726","times":"","pid":"329"},{"id":"390","title":"第六集","spic":"","url":"/Public/editor/attached/file/20180309/20180309095912_28564.mp3","add_time":"1520560756","times":"","pid":"329"},{"id":"391","title":"第七集","spic":"","url":"/Public/editor/attached/file/20180309/20180309095943_66304.mp3","add_time":"1520560788","times":"","pid":"329"},{"id":"392","title":"第八集","spic":"","url":"/Public/editor/attached/file/20180309/20180309100020_78019.mp3","add_time":"1520560828","times":"","pid":"329"},{"id":"393","title":"第九集","spic":"","url":"/Public/editor/attached/file/20180309/20180309100054_93457.mp3","add_time":"1520560886","times":"","pid":"329"},{"id":"394","title":"第十集","spic":"","url":"/Public/editor/attached/file/20180309/20180309100153_92976.mp3","add_time":"1520560916","times":"","pid":"329"}]},{"id":"330","name":" ","model":[{"id":"395","title":"第十一集","spic":"","url":"/Public/editor/attached/file/20180309/20180309100242_72929.mp3","add_time":"1520560965","times":"","pid":"330"},{"id":"396","title":"第十二集","spic":"","url":"/Public/editor/attached/file/20180309/20180309100311_63242.mp3","add_time":"1520560994","times":"","pid":"330"},{"id":"397","title":"第十三集","spic":"","url":"/Public/editor/attached/file/20180309/20180309100338_63432.mp3","add_time":"1520561021","times":"","pid":"330"}]}]
     */

    private String yinpinId;
    private String yinpinname;
    private String spic;
    private ArrayList<ListBean> list;

    protected AudioMoreBean(Parcel in) {
        yinpinId = in.readString();
        yinpinname = in.readString();
        spic = in.readString();
    }

    public static final Creator<AudioMoreBean> CREATOR = new Creator<AudioMoreBean>() {
        @Override
        public AudioMoreBean createFromParcel(Parcel in) {
            return new AudioMoreBean(in);
        }

        @Override
        public AudioMoreBean[] newArray(int size) {
            return new AudioMoreBean[size];
        }
    };

    public String getYinpinId() {
        return yinpinId;
    }

    public void setYinpinId(String yinpinId) {
        this.yinpinId = yinpinId;
    }

    public String getYinpinname() {
        return yinpinname;
    }

    public void setYinpinname(String yinpinname) {
        this.yinpinname = yinpinname;
    }

    public String getSpic() {
        return spic;
    }

    public void setSpic(String spic) {
        this.spic = spic;
    }

    public ArrayList<ListBean> getList() {
        return list;
    }

    public void setList(ArrayList<ListBean> list) {
        this.list = list;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(yinpinId);
        dest.writeString(yinpinname);
        dest.writeString(spic);
    }

    public static class ListBean implements Parcelable{
        /**
         * id : 329
         * name : 第1-10集
         * model : [{"id":"385","title":"第一集","spic":"","url":"/Public/editor/attached/file/20180309/20180309095641_93215.mp3","add_time":"1520560604","times":"","pid":"329"},{"id":"386","title":"第二集","spic":"","url":"/Public/editor/attached/file/20180309/20180309095711_10381.mp3","add_time":"1520560634","times":"","pid":"329"},{"id":"387","title":"第三集","spic":"","url":"/Public/editor/attached/file/20180309/20180309095740_58801.mp3","add_time":"1520560667","times":"","pid":"329"},{"id":"388","title":"第四集","spic":"","url":"/Public/editor/attached/file/20180309/20180309095814_86994.mp3","add_time":"1520560697","times":"","pid":"329"},{"id":"389","title":"第五集","spic":"","url":"/Public/editor/attached/file/20180309/20180309095843_31198.mp3","add_time":"1520560726","times":"","pid":"329"},{"id":"390","title":"第六集","spic":"","url":"/Public/editor/attached/file/20180309/20180309095912_28564.mp3","add_time":"1520560756","times":"","pid":"329"},{"id":"391","title":"第七集","spic":"","url":"/Public/editor/attached/file/20180309/20180309095943_66304.mp3","add_time":"1520560788","times":"","pid":"329"},{"id":"392","title":"第八集","spic":"","url":"/Public/editor/attached/file/20180309/20180309100020_78019.mp3","add_time":"1520560828","times":"","pid":"329"},{"id":"393","title":"第九集","spic":"","url":"/Public/editor/attached/file/20180309/20180309100054_93457.mp3","add_time":"1520560886","times":"","pid":"329"},{"id":"394","title":"第十集","spic":"","url":"/Public/editor/attached/file/20180309/20180309100153_92976.mp3","add_time":"1520560916","times":"","pid":"329"}]
         */

        private String id;
        private String name;
        private ArrayList<ModelBean> model;

        protected ListBean(Parcel in) {
            id = in.readString();
            name = in.readString();
        }

        public static final Creator<ListBean> CREATOR = new Creator<ListBean>() {
            @Override
            public ListBean createFromParcel(Parcel in) {
                return new ListBean(in);
            }

            @Override
            public ListBean[] newArray(int size) {
                return new ListBean[size];
            }
        };

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public ArrayList<ModelBean> getModel() {
            return model;
        }

        public void setModel(ArrayList<ModelBean> model) {
            this.model = model;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(id);
            dest.writeString(name);
        }

        public static class ModelBean implements Parcelable{
            /**
             * id : 385
             * title : 第一集
             * spic :
             * url : /Public/editor/attached/file/20180309/20180309095641_93215.mp3
             * add_time : 1520560604
             * times :
             * pid : 329
             */

            private String id;
            private String title;
            private String spic;
            private String url;
            private String add_time;
            private String times;
            private String pid;

            protected ModelBean(Parcel in) {
                id = in.readString();
                title = in.readString();
                spic = in.readString();
                url = in.readString();
                add_time = in.readString();
                times = in.readString();
                pid = in.readString();
            }

            public static final Creator<ModelBean> CREATOR = new Creator<ModelBean>() {
                @Override
                public ModelBean createFromParcel(Parcel in) {
                    return new ModelBean(in);
                }

                @Override
                public ModelBean[] newArray(int size) {
                    return new ModelBean[size];
                }
            };

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getSpic() {
                return spic;
            }

            public void setSpic(String spic) {
                this.spic = spic;
            }

            public String getUrl() {
                return url;
            }

            public void setUrl(String url) {
                this.url = url;
            }

            public String getAdd_time() {
                return add_time;
            }

            public void setAdd_time(String add_time) {
                this.add_time = add_time;
            }

            public String getTimes() {
                return times;
            }

            public void setTimes(String times) {
                this.times = times;
            }

            public String getPid() {
                return pid;
            }

            public void setPid(String pid) {
                this.pid = pid;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(id);
                dest.writeString(title);
                dest.writeString(spic);
                dest.writeString(url);
                dest.writeString(add_time);
                dest.writeString(times);
                dest.writeString(pid);
            }
        }
    }
}
